//
//  BiaoQianView.swift
//  ANOA
//
//  Created by 邱仙凯 on 2025/1/12.
//  Copyright © 2025 zwb. All rights reserved.
//

class BiaoQianView:UIView {
    var bg:UIView = {
        var v = UIView()
        v.backgroundColor = .white
        return v
    }()
    var titleLab:UILabel!
    var field:UITextField!
    override init(frame: CGRect) {
        super.init(frame: frame)
        self.backgroundColor = .clear
        
        addSubview(bg)
 
        bg.snp.makeConstraints { make in
            make.top.equalToSuperview()
            make.width.equalTo(KSGlobal.screenW - 12)
            make.centerX.equalToSuperview()
            make.bottom.equalToSuperview().offset(-1)

        }
        
        
        titleLab = UILabel(frame: CGRect(x:20,y:0,width: 50,height: self.frame.height))
        titleLab.text = "标签:"
        titleLab.font = UIFont.systemFont(ofSize: 16)
        titleLab.textColor = .darkGray
        bg.addSubview(titleLab)
        
        field = UITextField(frame: CGRect(x:80,y:0,width: KSGlobal.screenW - 90,height: self.frame.height))
        field.font = UIFont.systemFont(ofSize: 16)
        field.textColor = .darkGray
        field.placeholder = "为这些发票取个标签名，便于查找"
        bg.addSubview(field)
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
}
